package admin

import "github.com/mars/internal/admin/options"

func Run(opts *options.Options) error {
	as, err := createAdminSever(opts)
	if err != nil {
		return err
	}
	return as.PrepareRun().Run()
}
